/* 管理windows窗口 */
const windowManage = {}

const setWindow = (id, window) => {
    windowManage[id] = window
}

const getWindow = (id) => {
    return windowManage[id]
}

const getAllWindows = () => {
    return windowManage
}

const delWindow = (id) => {
    delete windowManage[id]
}

export {
    setWindow,
    getWindow,
    delWindow,
    getAllWindows
}